import type { PageData } from '#/axios'

export enum TopicStatus {
  'Normal',
  'InUse'
}

export interface TopicResponse extends PageData{
  data: Topic[]
  staticsRow: Topic[]
}

export interface TemplateInfo {
  level: number
  templateId: number
  thumbUrl: string,
  showBackdrop?: boolean
}

export interface Topic {
  topicId: number
  passTypeIdentifier: string
  status: TopicStatus
  creTime: string
  updTime: string  
  topicName: string  
  templatesInfoVo: TemplateInfo[],
  merchantPassIssuer: [],
  operatorPassIssuer: []
}

export interface TopicListRequest {
  pageNo: number
  pageSize: number,
  topicName?: string,
  status?: TopicStatus | ''
}